<%-- 
    Document   : FormHapusPaket
    Created on : 02 Des 12, 14:06:07
    Author     : SONY
--%>

<%@ page import="java.sql.*" %>
<%@ page import="java.util.*" %>
<%@ page import="com.bp.Paket" %>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<jsp:useBean id="paket" scope="application" class="com.bp.Paket"/>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>

        <FORM method="post" action="FormHapusPaket">  
            <%com.bp.DbBean kon = new com.bp.DbBean();%>
            <h3> Silahkan klik gambar hapus untuk menghapus</h3>
            <table border=2>
                <TR>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Id_Paket</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Nama_Paket</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Harga</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Lama</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Lokasi</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Fasilitas</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Tujuan</B></FONT></TD>
                </TR>  

                <%
                    ArrayList pkt = paket.lihatDataPaket();
                    Iterator iterator = pkt.iterator();
                    while (iterator.hasNext()) {
                        Paket product = (Paket) iterator.next();
                %>

                <tr>
                    <td><%=product.id_paket%></td>
                    <td><%=product.nama_paket%></td>
                    <td><%=product.harga_paket%></td>
                    <td><%=product.lama%></td>
                    <td><%=product.lokasi%></td>
                    <td><%=product.fasilitas%></td>
                    <td><%=product.tujuan%></td>
                    <TD><a href="hapus.jsp?action=FormHapusPaket&idPaket=<%=product.id_paket%>" style="text-decoration: none"><img src="image/hapus.png" ></a></TD>



                </tr>

                <%
                    }
                %>




            </table>

        </FORM> 
    </body>
</html>
